﻿using System;
using System.IO;
using System.Text;
namespace RpcHelper.Config
{
    public class LocalConfig
    {
        public static readonly IConfigCollect Local = null;

        static LocalConfig()
        {
            string path = Path.Combine(AppContext.BaseDirectory, "LocalConfig.json");
            Local = new LocalConfigCollect(path);
        }

        public static void SaveFile()
        {
            string path = Path.Combine(AppContext.BaseDirectory, "LocalConfig.json");
            Local.SaveFile(new FileInfo(path));
        }
    }
}
